<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String contextPath = request.getContextPath();
%>  

<form action="<%=contextPath %>/admin/list.do" name="search" method="get" onsubmit="return searchCheck()">
<!-- //Wrapper -->
<div id="wrapper">

<!-- Contenter_Sub -->

<div id="container_sub">
<!-- Content_List -->
		
<div id="sub_page_bg1"></div>
<!-- Sub Page Background -->

<div id="content_list">
  <div class="title">
	<div class="sub_title">
			<li>프로포즈</li>
			<li class="stitle">나만의 짝을 찾기 위한 프로포즈</li>
	</div>
	<div class="navig">
		
		<li class='frst'><img src='../image/all/home_icon.png' align='absmiddle' width='13' height='13'> <a href='<%=contextPath%>/main/index.do'>HOME</a></li>
		<li>회원서비스</li>
		<li>받은 프로포즈</li>
	</div>
		<ul class='sub_menu'>		
	  <ul class="sub_tab">
			<ul class="sub_tab">
			<li><a class='rollover' href="<%=contextPath%>/member/myPage.do?id=${id}">내 정보</a></li>
			<li><a class='rollover' href="<%=contextPath%>/member/paymentList.do">결제내역</a></li>
			<li><a class='rollover' href="<%=contextPath%>/member/myTicketList.do">My Ticket</a></li>
			<li><a class='over' href="#">MY PROPOSE</a></li>
			<li><a class='rollover' href="<%=contextPath%>/member/sendSmsList.do">쪽지함</a></li>
		</ul>
	</ul>
	 <div>
		<br>
		<nav id ="bo_cate">
			<ul id="bo_cate_ul">
            	<li><a href="<%=contextPath%>/matching/sendPropose.do?id=${id}">보낸 프로포즈</a></li>
            	<li><a href="<%=contextPath%>/matching/receivePropose.do?id=${id}" id="bo_cate_on">받은 프로포즈</a></li>
             </ul>
      	</nav>
	</div>	
			
</div>

<div class="content_title">
	<h1><span>Receive</span><br>Propose List</h1>
	<p><br>━</p>
	<span class="content_title_s"><strong></strong></span>
</div>

<div class="great_date">
	<h2>프로포즈 리스트</h2>
	<p>
	 <div class="bo_fx">
        <div id="bo_list_total">
            <span>Total${count}건</span>
            ${currentPage}페이지 
        </div>
            <ul class="btn_bo_user" style="float:right"> 
             </ul>
     </div>
 
    <!-- 본격적인 게시판 리스트 -->
 <div class="tbl_head01 tbl_wrap">
    <table>
    <caption>나의 프로포즈</caption>
     <thead>
      <tr>    
        <th scope="col" class="td_num">나에게 프로포즈 한 상대</th>
        <th scope="col" class="td_num">요청일</th>
        <th scope="col" class="td_num">상대 정보 보기</th>   
        <th scope="col" class="td_num">상태</th>
       </tr>
     </thead>
     
     <tbody>
      <c:forEach var="matching" items="${list}" >
      <tr>
        <td class="td_num"> 
        	${matching.sendname}(${matching.sendid})
        </td>
        <td class="td_num"> 
        	${matching.reg_date}
        </td>
        <td class="td_num">
        	<input type="button" value="보기" onclick="location.href='<%=contextPath%>/matching/detail.do?id=${matching.sendid}'">
        </td>
        <c:if test="${matching.state=='2'}">
        <td class="td_num"> 
        	<input type="button" value="프로포즈 수락" onclick="location.href='<%=contextPath%>/matching/acceptPropose.do?num=${matching.num}'">
        	<input type="button" value="프로포즈 거절" onclick="location.href='<%=contextPath%>/matching/rejectPropose.do?num=${matching.num}'">
        </td>
        </c:if>
        <c:if test="${matching.state !='2'}">
        	
        <td class="td_num">
        	만남 성사
        </td>
        </c:if>
        
        </tr>
       </c:forEach>
       
      <c:if test="${count == 0}">
      <tr>
		<td colspan="5" class="align-center">받은 프로포즈가 없습니다.</td>
	  </tr>
	   </c:if>
     </tbody>
   </table>
</div>
 <div class="bo_fx">
     <ul class="btn_bo_user" style="float:right">  
      </ul>
 </div>

</div>

<!-- 페이징처리 -->
<table>
<c:if test="${count > 0}">
<nav class="pg_wrap">

	<span class="pg">
	${pagingHtml} </span>
	  
</nav>
</c:if>
</table>

		<!-- <div id="blank">&nbsp;</div> -->
		</div>
		<!-- //content_list -->

	</div>
	<!-- //contenter_sub -->

</div>
<!-- //wrapper -->

<hr>
</form>